#!/usr/bin/env python


def notify(message):

    import smtplib

    with open('./email_login', 'r') as f:
        username = f.read()
    with open('./email_password', 'r') as f:
        password = f.read()
    with open('./send_to', 'r') as f:
        send_to = f.read()

    server = smtplib.SMTP('smtp.gmail.com', 587)
    server.starttls()
    server.login(username, password)
    server.sendmail(username, send_to, message)
    server.quit()

# EOF
# vim: set tabstop=4 shiftwidth=4 expandtab :
